﻿using System;
using System.Collections.Generic;

//[JsonObject(MemberSerialization.OptOut)]类 + [JsonIgnore]属性  ,默认序列化+指定忽略
//[JsonObject(MemberSerialization.OptIn)]类  + [JsonProperty]属性,默认不序列化+指定属性序列化

namespace BanaToys.InfoSys.Web.ApiCall.BanaWww
{

    #region item

    /// <summary>
    /// json品牌,sync接口用,简单,list/detail的公用父类
    /// </summary>
    public class i_brand_item
    {
        public string FRowGuid { get; set; }
        public string FCode { get; set; }
        public string FBrandText { get; set; }
        public int? FOrderNo { get; set; }
        public string FRemarks { get; set; }
        public string FParentGuid { get; set; }
        public string F_ParentCode { get; set; }
        public string FBrandAdTextChs { get; set; }
        public string FBrandAdTextEng { get; set; }
        public bool? FIsSystem { get; set; }
        public bool? FIsDisabled { get; set; }
    }

    /// <summary>
    /// json品牌,list,detail接口用,扩展了sync
    /// </summary>
    public class i_brand_item_view : i_brand_item
    {
       //一样的
    }

    #endregion

    #region q

    /// <summary>
    /// sync,q
    /// </summary>
    public class q_brand_sync
    {
        public i_brand_item Item { get; set; }
    }

    /// <summary>
    /// list,q,查询结果列表
    /// </summary>
    public class q_brand_list
    {
        public string FCode { get; set; }
        public string FBrandText { get; set; }
        public bool? FIsDisabled { get; set; }
        public int? PageSize { get; set; }
        public int? PageIndex { get; set; }
    }

    /// <summary>
    /// detail,q
    /// </summary>
    public class q_brand_detail
    {
        public string FRowGuid { get; set; }
        public string FCode { get; set; }
    }

    /// <summary>
    /// delete,q
    /// </summary>
    public class q_brand_delete
    {
        public string FRowGuid { get; set; }
        public string FCode { get; set; }
    }

    /// <summary>
    /// state,q,状态修改,目前仅FIsDisabled一个状态
    /// </summary>
    public class q_brand_state
    {
        public string FRowGuid { get; set; }
        public string FCode { get; set; }
        public bool? FIsDisabled { get; set; }
    }

    #endregion

    #region a

    /// <summary>
    /// sync,a
    /// </summary>
    public class a_brand_sync : a__base
    {
        //
    }

    /// <summary>
    /// list,a
    /// </summary>
    public class a_brand_list : a__base
    {
        public int? PageSize { get;set; }
        public int? PageIndex { get;set; }
        public int? RowCount { get; set; }
        public List<i_brand_item_view> List { get; set; }
    }

    /// <summary>
    /// detail,a
    /// </summary>
    public class a_brand_detail : a__base
    {
        public i_brand_item_view Item { get; set; }
    }

    /// <summary>
    /// delete,a
    /// </summary>
    public class a_brand_delete : a__base
    {
        //
    }

    /// <summary>
    /// state,a
    /// </summary>
    public class a_brand_state : a__base
    {
        //
    }

    #endregion

}